import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
//@ts-ignore
import path from "path";

export default defineConfig({
    plugins: [vue({
        script: {
            globalTypeFiles: [
                '../packages/components/types/vboard.d.ts',
            ],
        }
    }
    )],
    resolve: {
        alias: {
            //@ts-ignore
            '@assets': path.resolve(__dirname, '../packages/components/assets'),
            //@ts-ignore
            '@components': path.resolve(__dirname, '../packages/components/')
        }
    },
    server:{
        port: 7788
    },
    optimizeDeps:{
        force: true,
    }
});